package com.test.testMatch;

import org.junit.Test;

/**
 * 正则表达式实验室
 */
public class testMatch {

    @Test
    public void test1(){
        String str1 = "操作系统";
        String str2 ="数据库系统与概念";

        String pattern = "数据库系统与概念1";

        System.out.println(str1.matches(pattern));
        System.out.println(str2.matches(pattern));
    }
}
